﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeepZoomPivotConstructor.VisualCacheInterfaces
{
    /// <summary>
    /// Interface to a hash-keyed database that contains information
    /// about stored visuals.
    /// </summary>
    public interface IVisualCacheDB
    {
        /// <summary>
        /// Returns all the visual objects that have the same hash - one can then
        /// use some more sophisticaed way of determining which is which.
        /// </summary>
        /// <param name="hash"></param>
        /// <returns></returns>
        CacheDBInfo FindHit(long hash);

        /// <summary>
        /// Save a cache line entry
        /// </summary>
        /// <param name="hash"></param>
        /// <param name="info"></param>
        void Save(CacheDBInfo info);
    }
}
